//
//  SafeCenterController.m
//  LianShangBao
//
//  Created by 主事丫环HU on 2020/9/4.
//  Copyright © 2020 主事丫环. All rights reserved.
//

#import "SafeCenterController.h"
#import "SafeChangePasswordController.h"
@interface SafeCenterController ()
@property (weak, nonatomic) IBOutlet UILabel *phoneLabel;

@end

@implementation SafeCenterController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:NO animated:animated];
}
- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:YES animated:animated];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"安全中心";
    [self.leftbutton setImage:imgname(@"lefticon") forState:(UIControlStateNormal)];
    self.view.backgroundColor = [UIColor colorWithHexString:@"#F5F5F5"];
    
    self.phoneLabel.text = self.model.phone;
    
}
- (IBAction)changePasswordButtonClick:(UIButton *)sender {
    SafeChangePasswordController * vc = [[SafeChangePasswordController alloc] init];
    vc.phoneStr = self.model.phone;
    [self.navigationController pushViewController:vc animated:YES];
}


@end
